package com.test.spring4;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;

public class Annimal {

	//创建
	@PostConstruct
	public void initial(){
		System.out.println("=========initial====");
	}
	
	//销毁
	@PreDestroy
	public void close(){
		System.out.println("======close=======");
	}
}
